package com.example.flowermall.service;

import com.example.flowermall.entity.Invitaton;
import com.example.flowermall.entity.Result;
import com.example.flowermall.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoman
 * @since 2023-05-30
 */
public interface IUserService extends IService<User> {

    void addUser(User user);

    void delete(Integer id);

    User getUserById(Integer id);

    void updateUser(User user);
    List<User> selectUsers(String username);

    Result register(User user);

    User wxLogin(User user);

    User getUser(Integer userId);

    List<User> getBeCode(String invitationCode);

    User getInvitation(Integer userId);

    List<Invitaton> getInvitationList(Integer id);

    Boolean payouts(Integer id);

    User getInvitationCode(String beInvitedCode);
}
